<?xml version="1.0"?>
<modules id="InsightX Customer Profile" ver_maj="1" ver_min="0.0">
	<module name="InsightX">
		<return>
			<crmdata><Result><ResultCode>0</ResultCode><Description>Success</Description></Result></crmdata>
		</return>
		
		<method name="GetProfile">
			<call type="sproc" name="ProfileGet">
				<input>
					<parameter type="int">ProfileID</parameter>
				</input>
				<output>
					<record>
						<field>ID</field>
						<field>Title</field>
						<field>Firstname</field>
						<field>Surname</field>
						<field>Email</field>
						<field>Cellphone</field>
					</record>
				</output>
			</call>
			<result type="set" record="profile" value="0" default="yes" parent="profiles">
				<profile id="ID" title="Title" firstname="Firstname" surname="Surname">
					<Email>Email</Email> 
					<Cellphone>Cellphone</Cellphone> 
				</profile>
			</result>
			<result type="exception" value="1000">Error retrieving the profile list</result>
		</method>
		
		<method name="RecordYou">
			<call type="sproc" name="RecordYou">
				<input>
					<parameter type="int">CategoryID</parameter>
					<parameter type="string" length="10">Title</parameter>
					<parameter type="string" length="50">Firstname</parameter>
					<parameter type="string" length="50">Surname</parameter>
					<parameter type="string" length="100">Email</parameter>
					<parameter type="string" length="30">Cellphone</parameter>
					<parameter type="string" length="10">Age</parameter>
					<parameter type="string" length="50">Profession</parameter>
					<parameter type="string" length="5">Customer</parameter>
					<parameter type="string" length="5">Registered</parameter>
				</input>
				<output>
					<record>
						<field>ID</field>
					</record>
				</output>
			</call>
			<result type="set" record="profile" value="0" default="yes" parent="profiles">
				<profile id="ID"/>
			</result>
			<result type="exception" value="1001">Error recording profile</result>
		</method>
		
		<method name="RecordCell">
			<call type="sproc" name="RecordCell">
				<input>
					<parameter type="int">ProfileID</parameter>
					<parameter type="int">HowOften</parameter>
					<parameter type="string" length="100">Choose</parameter>
					<parameter type="string" length="255">ChooseOther</parameter>
					<parameter type="string" length="100">Use</parameter>
					<parameter type="string" length="255">UseOther</parameter>
					<parameter type="string" length="10">Costs</parameter>
					<parameter type="string" length="10">Pay</parameter>
					<parameter type="string" length="255">PayOther</parameter>
					<parameter type="string" length="10">Contract</parameter>
				</input>
				<output>
					<record>
						<field>ID</field>
					</record>
				</output>
			</call>
			<result type="set" record="profile" value="0" default="yes" parent="profiles">
				<profile id="ID"/>
			</result>
			<result type="exception" value="1001">Error recording profile</result>
		</method>
		
		<method name="RecordSite">
			<call type="sproc" name="RecordSite">
				<input>
					<parameter type="int">ProfileID</parameter>
					<parameter type="int">Think</parameter>
					<parameter type="string" length="255">ThinkWhy</parameter>
					<parameter type="string" length="255">ChangeMost</parameter>
					<parameter type="string" length="255">Change</parameter>
					<parameter type="string" length="255">ChangeLeast</parameter>
					<parameter type="string" length="255">LikeMost</parameter>
					<parameter type="string" length="255">Like</parameter>
					<parameter type="string" length="255">LikeLeast</parameter>
					<parameter type="int">Nav</parameter>
					<parameter type="string" length="255">NavWhy</parameter>
					<parameter type="int">Looks</parameter>
					<parameter type="string" length="255">LooksWhy</parameter>
					<parameter type="int">Speed</parameter>
					<parameter type="string" length="255">More</parameter>
				</input>
				<output>
					<record>
						<field>ID</field>
					</record>
				</output>
			</call>
			<result type="set" record="profile" value="0" default="yes" parent="profiles">
				<profile id="ID"/>
			</result>
			<result type="exception" value="1001">Error recording profile</result>
		</method>
		
		<method name="RecordHome">
			<call type="sproc" name="RecordHome">
				<input>
					<parameter type="int">ProfileID</parameter>
					<parameter type="int">Think</parameter>
					<parameter type="string" length="255">ThinkWhy</parameter>
					<parameter type="int">Separate</parameter>
					<parameter type="string" length="255">SeparateWhy</parameter>
					<parameter type="string" length="255">ChangeMost</parameter>
					<parameter type="string" length="255">Change</parameter>
					<parameter type="string" length="255">ChangeLeast</parameter>
					<parameter type="string" length="255">LikeMost</parameter>
					<parameter type="string" length="255">Like</parameter>
					<parameter type="string" length="255">LikeLeast</parameter>
					<parameter type="string" length="100">Prefer</parameter>
					<parameter type="string" length="255">PreferOther</parameter>
					<parameter type="string" length="255">BypassMost</parameter>
					<parameter type="string" length="255">Bypass</parameter>
					<parameter type="string" length="255">BypassLeast</parameter>
					<parameter type="string" length="255">More</parameter>
				</input>
				<output>
					<record>
						<field>ID</field>
					</record>
				</output>
			</call>
			<result type="set" record="profile" value="0" default="yes" parent="profiles">
				<profile id="ID"/>
			</result>
			<result type="exception" value="1001">Error recording profile</result>
		</method>
		
		<method name="RecordBilling">
			<call type="sproc" name="RecordBilling">
				<input>
					<parameter type="int">ProfileID</parameter>
					<parameter type="string" length="100">Prefer</parameter>
					<parameter type="int">Think</parameter>
					<parameter type="string" length="255">ThinkWhy</parameter>
					<parameter type="string" length="255">ChangeMost</parameter>
					<parameter type="string" length="255">Change</parameter>
					<parameter type="string" length="255">ChangeLeast</parameter>
					<parameter type="string" length="255">LikeMost</parameter>
					<parameter type="string" length="255">Like</parameter>
					<parameter type="string" length="255">LikeLeast</parameter>
					<parameter type="string" length="10">Add</parameter>
					<parameter type="string" length="255">AddWhat</parameter>
					<parameter type="string" length="255">More</parameter>
				</input>
				<output>
					<record>
						<field>ID</field>
					</record>
				</output>
			</call>
			<result type="set" record="profile" value="0" default="yes" parent="profiles">
				<profile id="ID"/>
			</result>
			<result type="exception" value="1001">Error recording profile</result>
		</method>
		
		<method name="RecordService">
			<call type="sproc" name="RecordService">
				<input>
					<parameter type="int">ProfileID</parameter>
					<parameter type="string" length="100">Prefer</parameter>
					<parameter type="string" length="255">PreferOther</parameter>
					<parameter type="string" length="255">PreferWhy</parameter>
					<parameter type="int">Think</parameter>
					<parameter type="string" length="255">ThinkWhy</parameter>
					<parameter type="string" length="10">Site</parameter>
					<parameter type="string" length="255">SiteWhy</parameter>
					<parameter type="string" length="255">AddMost</parameter>
					<parameter type="string" length="255">Add</parameter>
					<parameter type="string" length="255">AddLeast</parameter>
					<parameter type="string" length="255">More</parameter>
				</input>
				<output>
					<record>
						<field>ID</field>
					</record>
				</output>
			</call>
			<result type="set" record="profile" value="0" default="yes" parent="profiles">
				<profile id="ID"/>
			</result>
			<result type="exception" value="1001">Error recording profile</result>
		</method>
		
		<method name="RecordInternet">
			<call type="sproc" name="RecordInternet">
				<input>
					<parameter type="int">ProfileID</parameter>
					<parameter type="string" length="10">Know</parameter>
					<parameter type="string" length="50">Location</parameter>
					<parameter type="string" length="255">UseMost</parameter>
					<parameter type="string" length="255">Use</parameter>
					<parameter type="string" length="255">UseLeast</parameter>
					<parameter type="string" length="255">ImportantMost</parameter>
					<parameter type="string" length="255">Important</parameter>
					<parameter type="string" length="255">ImportantLeast</parameter>
					<parameter type="string" length="255">AddMost</parameter>
					<parameter type="string" length="255">Add</parameter>
					<parameter type="string" length="255">AddLeast</parameter>
					<parameter type="string" length="255">More</parameter>
				</input>
				<output>
					<record>
						<field>ID</field>
					</record>
				</output>
			</call>
			<result type="set" record="profile" value="0" default="yes" parent="profiles">
				<profile id="ID"/>
			</result>
			<result type="exception" value="1001">Error recording profile</result>
		</method>
		
		<method name="RecordTesting">
			<call type="sproc" name="RecordTesting">
				<input>
					<parameter type="int">ProfileID</parameter>
					<parameter type="string" length="10">Testing</parameter>
				</input>
				<output>
					<record>
						<field>ID</field>
					</record>
				</output>
			</call>
			<result type="set" record="profile" value="0" default="yes" parent="profiles">
				<profile id="ID"/>
			</result>
			<result type="exception" value="1001">Error recording profile</result>
		</method>
			
		<method name="RecordGet">
			<call type="sproc" name="RecordGet">
				<input>
					<parameter type="int">ProfileID</parameter>
				</input>
				<output>
					<record>
						<field>ID</field>
						<field>Title</field>
						<field>Firstname</field>
						<field>Surname</field>
						<field>Email</field>
						<field>Cellphone</field>
						<!-- You -->
						<field>Age</field>,
						<field>Profession</field>,
						<field>Customer</field>,
						<field>Registered</field>,
						<field>Testing</field>,
						<field>InitDate</field>,
						<!-- Cell -->
						<field>CellHowOften</field>
						<field>CellChoose</field>
						<field>CellChooseOther</field>
						<field>CellUse</field>
						<field>CellUseOther</field>
						<field>CellCosts</field>
						<field>CellPay</field>
						<field>CellPayOther</field>
						<field>CellContract</field>
						<!-- Site -->
						<field>SiteThink</field>
						<field>SiteThinkWhy</field>
						<field>SiteChangeMost</field>
						<field>SiteChange</field>
						<field>SiteChangeLeast</field>
						<field>SiteLikeMost</field>
						<field>SiteLike</field>
						<field>SiteLikeLeast</field>
						<field>SiteNav</field>
						<field>SiteNavWhy</field>
						<field>SiteLooks</field>
						<field>SiteLooksWhy</field>
						<field>SiteSpeed</field>
						<field>SiteMore</field>
						<!-- Home -->
						<field>HomeThink</field>
						<field>HomeThinkWhy</field>
						<field>HomeSeparate</field>
						<field>HomeSeparateWhy</field>
						<field>HomeChangeMost</field>
						<field>HomeChange</field>
						<field>HomeChangeLeast</field>
						<field>HomeLikeMost</field>
						<field>HomeLike</field>
						<field>HomeLikeLeast</field>
						<field>HomePrefer</field>
						<field>HomePreferOther</field>
						<field>HomeBypassMost</field>
						<field>HomeBypass</field>
						<field>HomeBypassLeast</field>
						<field>HomeMore</field>
						<!-- Billing -->
						<field>BillingPrefer</field>
						<field>BillingThink</field>
						<field>BillingThinkWhy</field>
						<field>BillingChangeMost</field>
						<field>BillingChange</field>
						<field>BillingChangeLeast</field>
						<field>BillingLikeMost</field>
						<field>BillingLike</field>
						<field>BillingLikeLeast</field>
						<field>BillingAdd</field>
						<field>BillingAddWhat</field>
						<field>BillingMore</field>
						<!-- Service -->
						<field>ServicePrefer</field>
						<field>ServicePreferOther</field>
						<field>ServicePreferWhy</field>
						<field>ServiceThink</field>
						<field>ServiceThinkWhy</field>
						<field>ServiceSite</field>
						<field>ServiceSiteWhy</field>
						<field>ServiceAddMost</field>
						<field>ServiceAdd</field>
						<field>ServiceAddLeast</field>
						<field>ServiceMore</field>
						<!-- Internet -->
						<field>InternetKnow</field>
						<field>InternetLocation</field>
						<field>InternetUseMost</field>
						<field>InternetUse</field>
						<field>InternetUseLeast</field>
						<field>InternetImportantMost</field>
						<field>InternetImportant</field>
						<field>InternetImportantLeast</field>
						<field>InternetAddMost</field>
						<field>InternetAdd</field>
						<field>InternetAddLeast</field>
						<field>InternetMore</field>
					</record>
				</output>
			</call>
			<result type="set" record="profile" value="0" default="yes" parent="profiles">
				<profile id="ID" title="Title" firstname="Firstname" surname="Surname">
					<You>
						<Email>Email</Email> 
						<Cellphone>Cellphone</Cellphone> 
						<Age>Age</Age>
						<Profession>Profession</Profession>
						<Customer>Customer</Customer> 
						<Registered>Registered</Registered> 
						<Testing>Testing</Testing> 
						<InitDate>InitDate</InitDate>
					</You>
					<Cell>
						<HowOften>CellHowOften</HowOften>
						<Choose>CellChoose</Choose>
						<ChooseOther>CellChooseOther</ChooseOther>
						<Use>CellUse</Use>
						<UseOther>CellUseOther</UseOther>
						<Costs>CellCosts</Costs>
						<Pay>CellPay</Pay>
						<PayOther>CellPayOther</PayOther>
						<Contract>CellContract</Contract>
					</Cell>
					<Site>
						<Think>SiteThink</Think>
						<ThinkWhy>SiteThinkWhy</ThinkWhy>
						<ChangeMost>SiteChangeMost</ChangeMost>
						<Change>SiteChange</Change>
						<ChangeLeast>SiteChangeLeast</ChangeLeast>
						<LikeMost>SiteLikeMost</LikeMost>
						<Like>SiteLike</Like>
						<LikeLeast>SiteLikeLeast</LikeLeast>
						<Nav>SiteNav</Nav>
						<NavWhy>SiteNavWhy</NavWhy>
						<Looks>SiteLooks</Looks>
						<LooksWhy>SiteLooksWhy</LooksWhy>
						<Speed>SiteSpeed</Speed>
						<More>SiteMore</More>
					</Site>
					<Home>
						<Think>HomeThink</Think>
						<ThinkWhy>HomeThinkWhy</ThinkWhy>
						<Separate>HomeSeparate</Separate>
						<SeparateWhy>HomeSeparateWhy</SeparateWhy>
						<ChangeMost>HomeChangeMost</ChangeMost>
						<Change>HomeChange</Change>
						<ChangeLeast>HomeChangeLeast</ChangeLeast>
						<LikeMost>HomeLikeMost</LikeMost>
						<Like>HomeLike</Like>
						<LikeLeast>HomeLikeLeast</LikeLeast>
						<Prefer>HomePrefer</Prefer>
						<PreferOther>HomePreferOther</PreferOther>
						<BypassMost>HomeBypassMost</BypassMost>
						<Bypass>HomeBypass</Bypass>
						<BypassLeast>HomeBypassLeast</BypassLeast>
						<More>HomeMore</More>
					</Home>
					<Billing>
						<Prefer>BillingPrefer</Prefer>
						<Think>BillingThink</Think>
						<ThinkWhy>BillingThinkWhy</ThinkWhy>
						<ChangeMost>BillingChangeMost</ChangeMost>
						<Change>BillingChange</Change>
						<ChangeLeast>BillingChangeLeast</ChangeLeast>
						<LikeMost>BillingLikeMost</LikeMost>
						<Like>BillingLike</Like>
						<LikeLeast>BillingLikeLeast</LikeLeast>
						<Add>BillingAdd</Add>
						<AddWhat>BillingAddWhat</AddWhat>
						<More>BillingMore</More>
					</Billing>
					<Service>
						<Prefer>ServicePrefer</Prefer>
						<PreferOther>ServicePreferOther</PreferOther>
						<PreferWhy>ServicePreferWhy</PreferWhy>
						<Think>ServiceThink</Think>
						<ThinkWhy>ServiceThinkWhy</ThinkWhy>
						<Site>ServiceSite</Site>
						<SiteWhy>ServiceSiteWhy</SiteWhy>
						<AddMost>ServiceAddMost</AddMost>
						<Add>ServiceAdd</Add>
						<AddLeast>ServiceAddLeast</AddLeast>
						<More>ServiceMore</More>
					</Service>
					<Internet>
						<Know>InternetKnow</Know>
						<Location>InternetLocation</Location>
						<UseMost>InternetUseMost</UseMost>
						<Use>InternetUse</Use>
						<UseLeast>InternetUseLeast</UseLeast>
						<ImportantMost>InternetImportantMost</ImportantMost>
						<Important>InternetImportant</Important>
						<ImportantLeast>InternetImportantLeast</ImportantLeast>
						<AddMost>InternetAddMost</AddMost>
						<Add>InternetAdd</Add>
						<AddLeast>InternetAddLeast</AddLeast>
						<More>InternetMore</More>
					</Internet>
				</profile>
			</result>
			<result type="exception" value="1000">Error retrieving the profile list</result>
		</method>
		
	</module>
</modules>
